package net.aiion.weave.impl.startup;

import net.aiion.weave.spi.startup.GlobalContextStartup;
import net.aiion.weave.spi.startup.Startup;

public class StartupImpl extends Startup
{
    private GlobalContextStartup globalContextStartup;

    public StartupImpl() {
    }

    @Override
    public GlobalContextStartup usingGlobalContext() {
        if (globalContextStartup == null) {
            globalContextStartup = new GlobalContextStartupImpl();
        }

        return globalContextStartup;
    }
}
